package com.example.netty.service;

import io.netty.channel.ChannelHandlerContext;

/**
 * Created by l.wang on 2018/3/28.
 */
public interface TerminalContextService {

    boolean getDeviceRouterLogin(ChannelHandlerContext channel);

    void channelRead(ChannelHandlerContext channelHandlerContext, Object msg);

    TerminalContext onConnect(ChannelHandlerContext channel);

    TerminalContext onDisconnect(ChannelHandlerContext channelHandlerContext);

}
